]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
swipeTracker: Allow touchpad gestures with >3 fingers
authorGregor Niehl <gregorniehl@web.de>
Sat, 20 Apr 2024 16:47:25 +0000 (18:47 +0200)
committerGregor Niehl <gregorniehl@web.de>
Sun, 12 May 2024 10:37:42 +0000 (12:37 +0200)
Make it easier to switch workspaces by also allowing swipes with 4 or more
fingers. This is consistent with how we behave for touchscreen swipes too.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3275>

js/ui/swipeTracker.js

index cef904c0528590d8a8a80d3118227c953e3bc742..a78fb28983e2762b994f22060389d71d19de5ee3 100644 (file)
@@ -126,7 +126,7 @@ const TouchpadSwipeGesture = GObject.registerClass({
         if (event.get_gesture_phase() === Clutter.TouchpadGesturePhase.BEGIN)
             this._state = TouchpadState.NONE;
 
-        if (event.get_touchpad_gesture_finger_count() !== GESTURE_FINGER_COUNT)
+        if (event.get_touchpad_gesture_finger_count() < GESTURE_FINGER_COUNT)
             return Clutter.EVENT_PROPAGATE;
 
         if ((this._allowedModes & Main.actionMode) === 0)